<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('老师ID')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-teacher_id" data-rule="required" data-source="learn/teacher/index" class="form-control selectpage" name="row[teacher_id]" type="text" value="{$row.teacher_id|htmlentities}">-->
            {if $row.teacher_id}
            <input id="c-teacher_id" data-rule="required" class="form-control" name="row[teacher_id]" type="number" value="{$row.teacher_id|htmlentities}" autocomplete="off" onmousewheel="return false;" onDOMMouseScroll="stopScrollFun">
            {else}
            <input id="c-teacher_id" data-rule="required" class="form-control" name="row[teacher_id]" type="number" value="" autocomplete="off" onmousewheel="return false;" onDOMMouseScroll="stopScrollFun">
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('老师姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-teacher_id" data-rule="required" data-source="learn/teacher/index" class="form-control selectpage" name="row[teacher_id]" type="text" value="{$row.teacher_id|htmlentities}">-->
            <input id="c-teacher_name" data-rule="required" class="form-control" name="row[teacher_name]" type="text" value="{$row.teacher_name|htmlentities}" autocomplete="off">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('老师电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_phone"  class="form-control" name="row[teacher_phone]" type="text" value="{$row.teacher_phone|htmlentities}" autocomplete="off">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}" autocomplete="off">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<script>
    function stopScrollFun(evt) {
        evt = evt || window.event;
        if(evt.preventDefault) {
            // Firefox
            evt.preventDefault();
            evt.stopPropagation();
        } else {
            // IE
            evt.cancelBubble=true;
            evt.returnValue = false;
        }
        return false;
    }
</script>